<head><title>Steroid - Survey</title></head>

<?php
	// $current_client was set in the controller file
	echo "This is the " . $current_survey['Survey']['name'] . " survey with id " . $current_survey['Survey']['id'];
?>

<br />
<br />
<?php
	if (isset($items) && is_array($items))
	{
	echo 'this should work';
?>

<table>
<?php foreach ($items as $item) : ?>
<tr>
<td><?php echo $item['Item']['id']; ?></td>
<td><?php echo $item['Item']['title']; ?></td>
<td><?php echo $item['Item']['prompt']; ?></td>
<tr>

<? endforeach; ?>
</table>

<?php
	}
?>



<br/>
<br/>

<?= $html->link('New Item', '/items/add/'.$current_survey['Survey']['id']); ?>

<br />
<br />